package com.aabte.weather.wearthercollection.weather;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "weather", ignoreInvalidFields = true)
public class WeatherProperties {

    public static final int DEFAULT_CACHE_TIME_SECONDS = 1800;

    private int cacheTimeoutSeconds = DEFAULT_CACHE_TIME_SECONDS;

}
